
package com.timber.util;

import java.sql.*;

public interface SLDataObject
{
  /**
   *	An interface to be implemented by classes that are created
   *	inside the SLDataMgr.
   *
   *	load() method is called to read a data record
   *	hashKey() is called to return just that for searching record
   *	listString() is called to return a String to be used in list/combo Box
   *
   *	SLDataObjectAdaptor provides default implementation
   *
   */
  public boolean load( ResultSet rs ) throws SQLException;
  public Object hashKey();
  public String getDescr();
  public String listString();
  public long	getId();
  public Object getIdObj();

 /*
 isPlaceHolderObject() is used in SearchableComboBoxes to identify "bogus" objects
 like "SelectAll" or "SelectNone" (method should return "true"); for all other objects
 (Entity, Customer, etc.) it should return "false".

 */

 public boolean isPlaceHolderObject();
}
